<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <style>
    .outer{
      width: 500px;
      background-color: blueviolet;
      border: 1px solid black;
      padding: 20px;
    }
    .box{
      width: 200px;
      height: 200px;
      font-size: 20px;
    }
    .box1{
      background-color: red;
    }
    .box2{
      background-color: orange;
      position: absolute;
      left: 100px;
    }
    .box3{
      background-color: #2e6da4;
    }
  </style>
</head>
<body>
<div class="outer">
  <div class="box box1">1</div>
  <div class="box box2">2</div>
  <div class="box box3">3</div>
</div>
</body>
</html>